home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2003 November A / PCWK1103A.iso / Adobe After Effects 6.0 tryout / MM5.Cab / F3695_newRenderLocations.jsx.304FA6F7_2783_11D4_8520_00C04F602FD3 < prev    next >
Text File  |  2003-07-18  |  641b  |  23 lines

  1. //Prompt the user for a new folder location
  2.  
  3. var newLocation = folderGetDialog("Select a render destination...");
  4.  
  5. //Set active RQItems to render to the new location
  6.  
  7. if (newLocation) { //boolean to see if the user cancelled
  8.     for (i = 1; i <= app.project.renderQueue.numItems; ++i) {
  9.         var curItem = app.project.renderQueue.item(i);
  10.         
  11.         if (curItem.status == RQItemStatus.QUEUED) {
  12.             for (j = 1; j <= curItem.numOutputModules; ++j) {
  13.                 var curOM = curItem.outputModule(j);
  14.                 
  15.                 var oldLocation = curOM.file;
  16.                 curOM.file = new File(newLocation.toString() + "/" + oldLocation.name);
  17.                 
  18.                 alert(curOM.file.fsName);
  19.             }
  20.         }
  21.     }
  22. }
  23.